package com.zut.oss.adapter;

import com.zut.oss.entity.FileInfo;
import com.zut.oss.adapter.StorageAdapter;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

@Service("aliyunOssServiceImpl")
public class AliyunOssAdapterImpl implements StorageAdapter {

    @Override
    public void createBucket(String bucket) throws Exception {

    }

    @Override
    public void uploadBucket(MultipartFile multipartFile, String bucket, String ObjectName) {

    }

    @Override
    public List<String> getAllBucket() {
        List<String> list=new ArrayList<>();
        list.add("aliyun");
        return list;
    }

    @Override
    public List<FileInfo> getBucketAllFileName(String bucket) {
        return null;
    }

    @Override
    public InputStream downLoad(String bucket, String objectName) {
        return null;
    }

    @Override
    public void deleteBucket(String bucket) {

    }

    @Override
    public void deleteBucketFile(String bucket, String objectName) {

    }

    @Override
    public String getUrl(String bucket, String objectName) {
        return null;
    }
}
